<template>
	<view v-show="types" class="pages">
		<view class="title">车辆信息</view>
		<view class="tblist">
			<view class="tbnav">车牌</view>
			<view class="tbnav">车队</view>
			<view class="tbnav">变更</view>
			<view class="tbnav">状态</view>
		</view>
		<view class="lblist">
			<view class="lvnav" v-for="(item,index) in list" :key="index">
				<view class="tbnavs">{{item.cp}}</view>
				<view class="tbnavs">{{item.cdname}}</view>
				<view class="tbnavs">{{item.hzname}}</view>
				<view class="tbnavs">{{item.status==1?'待审核':item.status==2?'通过':'拒绝'}}</view>
			</view>
			
		</view>
		
		
		
	</view>
</template>

<script>
	import {
	  request
	} from '@/util/request.js'
	export default {
		name:"newhz",
		props: {
			types: {
				type: Boolean,
				default: false,
				required: true,
			},
			uid:{
				type: Number,
				default: 0,
			}
		},
		data() {
			return {
				list:[]	
			};
		},
		created() {
			this.getshlists()
		},
		methods:{
			async getshlists(){
				let res = await request('/api/Shy/getshlist/', 'post',{})
				console.log(res.data)
				this.list = res.data.data
			}
		}
	}
</script>
<style lang="less" scoped>
.pages{
	.title{
		text-align: center;
		font-size: 18px;
		color: #ffffff;
		background-color: #3c77b7;
		height: 40px;
		line-height: 40px;
	}
	.tblist{
		overflow: hidden;
		.tbnav{
			float: left;
			width: 25%;
			text-align: center;
			color: #ffffff;
			background-color: #3c77b7;
			height: 30px;
			line-height: 30px;
			font-size: 16px;
		}
	}
	.lblist{
		display: block;
		height: 200px;
		.lvnav{
			overflow: auto;
			border-bottom: 1px solid #3c77b7;
			.tbnavs{
				float: left;
				width: 25%;
				text-align: center;
				height: 40px;
				line-height: 40px;
				font-size: 17px;
			}
		}
	}
	.buts{
		border: 1px solid #3c77b7;
		width: 180px;
		border-radius: 5px;
		text-align: center;
		margin:  0 auto;
		padding-top:10px;
		padding-bottom: 10px;
		color: #3c77b7;
		font-size: 18px;
		margin-top: 10px;
	}
	}
</style>
